﻿using System;

namespace l1cs_cl.client
{
    public class Character
    {
        public int id;
        public String name;
        public String clanName;
        public int type;
        public int sex;
        public int lawful;
        public int hp;
        public int mp;
        public int ac;
        public int lv;
        public int str;
        public int dex;
        public int con;
        public int wis;
        public int cha;
        public int intel;
        public int accessLevel;
        public int exp;
        public int currentHp;
        public int maxHp;
        public int currentMp;
        public int maxMp;
        public int time;
        public int food;
        public int weight240;
        public int fire;
        public int water;
        public int wind;
        public int earth;
        public int mapid;
        public bool isUnderwater;
        public int x;
        public int y;
        public int heading;  // ● 向き 0.左上 1.上 2.右上 3.右 4.右下 5.下 6.左下 7.左
        public int lightSize;
        public int moveSpeed;
        public String title;
        public int status;
        public int clanid;

        public String getStringClass()
        {
            String ret = "不明クラス";
            if ( type == 0 ) { ret = "君主"; }
            else if ( type == 1 ) { ret = "ナイト"; }
            else if ( type == 2 ) { ret = "エルフ"; }
            else if ( type == 3 ) { ret = "ウィザード"; }
            else if ( type == 4 ) { ret = "ダークエルフ"; }
            else if ( type == 5 ) { ret = "ドラゴンナイト"; }
            else if ( type == 6 ) { ret = "イリュージョニスト"; }
            return ret;
        }

        public String getStringSex()
        {
            String ret = "男";
            if ( sex != 0 )
            {
                ret = "女";
            }
            return ret;
        }
    }
}
